﻿@using QuocHoi_TV_Frontend.Models
@{
    List<News> lstNewsest = DataModels.GetLastestNews(5);
}
<div class="tinmoinhat">
    <div class="tiletin">
        <a href="">Tin mới nhất</a>
    </div>
    <div class="alltinmoinhat">
        <ul class="">
            @foreach (News item in lstNewsest)
            {
                <li class="">
                    <div class="img_alltinmoinhat">
                        <a class="" href="@Url.RouteUrl("NewsDetail", new { controller = "News", action = "NewsDetailHome", cate_name = Util.RemoveSign4VietnameseString(item.Category.CateName), year = DateTime.Parse(item.CreateDate.ToString()).Year, month = DateTime.Parse(item.CreateDate.ToString()).Month, news_title = Util.RemoveSign4VietnameseString(item.NewsTitle), newsID = item.NewsID })">
                            <img src="@item.PathImgSmall" width="83" height="71">
                        </a>
                    </div>
                    <div class="tile_img_alltinmoinhat">
                        <a href="@Url.RouteUrl("NewsDetail", new { controller = "News", action = "NewsDetailHome", cate_name = Util.RemoveSign4VietnameseString(item.Category.CateName), year = DateTime.Parse(item.CreateDate.ToString()).Year, month = DateTime.Parse(item.CreateDate.ToString()).Month, news_title = Util.RemoveSign4VietnameseString(item.NewsTitle), newsID = item.NewsID })">
                            @Html.Raw(NewsHelper.Sliptsubject(item.NewsTitle, 80))</a>
                    </div>
                </li>
            }
        </ul>
    </div>
    <div class="btxemct">
        <a href="">XEM TẤT CẢ TIN MỚI</a>
    </div>
</div>
